<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="icon" type="image/x-icon" href="https://www.opposhop.cn/cn/web/favicon.ico" />
    <link rel="stylesheet" href="../css/reset.css">
    <!-- <link rel="stylesheet" href="../css/index.css"> -->
    <link rel="stylesheet" href="../fonts/iconfont/iconfont.css">
    <link rel="stylesheet" href="../css/cart.css">
    <script src="../fonts/iconfont/iconfont.js"></script>
    <script src="../lib/jquery/jquery.min.js"></script>
</head>
<body>
    <header class="pos-f">
        <div class="head_top_wrap head_top_unload">
            <div class=" head_top w clearfix">
                <ul class="head_top_left fl">
                    <li><a href="javascript:void(0);">OPPO 官网</a></li>
                    <li><a href="javascript:void(0);">一加官网</a></li>
                </ul>
                <ul class="head_top_right fr">
                    <li class="down pos_r">
                        <a href="javascript:void(0);">下载 OPPO 商城 App</a>
                        <div class="ewm pos-a">
                            <img src="../images/img_home/qrcode-ewm.jpg">
                            <p>扫描下载 OPPO 商城 App</p>
                        </div>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <i class="iconfont icon-denglu-copy"></i>
                        <a href="../views/login.html">登录</a>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <a href="../views/register.html">注册</a>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <i class="iconfont icon-shouye"></i>
                        <a href="../views/cart.html">购物车</a>
                        <span class="num">（0）</span>
                    </li>
                </ul>
            </div>
        </div>
        <div class="head_top_wrap head_top_loading">
            <div class="head-top w clearfix">
                <ul class="head_top_left fl">
                    <li><a href="javascript:void(0);">OPPO 官网</a></li>
                    <li><a href="javascript:void(0);">一加官网</a></li>
                </ul>
                <ul class="head_top_right fr">
                    <li class="down pos-r">
                        <a href="javascript:void(0);">下载 OPPO 商城 App</a>
                        <div class="ewm pos-a">
                            <img src="../images/img_home/qrcode-ewm.jpg">
                            <p>扫描下载 OPPO 商城 App</p>
                        </div>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <i class="iconfont icon-denglu-copy"></i>
                        <a href="javascript:void(0);">用户&nbsp;<span class="username"></span></a>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <a href="javascript:void(0);">我的订单</a>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <a href="../views/home.html" class="quit">退出</a>
                    </li>
                    <li class="line">|</li>
                    <li>
                        <i class="iconfont icon-shouye"></i>
                        <a href="../shopcar/shopcar.html">购物车</a>
                        <span>(<span class="num">0</span>)</span>
                    </li>
                </ul>
            </div>
        </div>
        <div class="head_nav_wrap">
            <div class="head_nav w clearfix">
                <div class="head_nav_left fl clearfix">
                    <a class="head_nav_log fl" href="../views/home.html">
                        <img src="../images/img_home/head-nav-logo.png">
                    </a>
                    <ul class="fl clearfix">
                        <li><a href="javascript:void(0);">OPPO专区</a></li>
                        <li><a href="javascript:void(0);">OnePlus专区</a></li>
                        <li><a href="javascript:void(0);">realme专区</a></li>
                        <li><a href="javascript:void(0);">智能硬件</a></li>
                        <li><a href="javascript:void(0);">潮流好物</a></li>
                        <li><a href="javascript:void(0);">服务</a></li>
                    </ul>
                </div>
                <div class="head_nav_right pos-r fr">
                    <input type="text" placeholder="OPPO Reno7">
                    <i class="iconfont icon-fangdajing1 pos-a"></i>
                </div>
            </div>
        </div>
    </header>

    <section>
        <div class="shop-cart" id="ovo">
            <div class="unload-shop w" >
                <img src="../images/img_cart/unload-shop-img.jpg">
                <p>购物车还没有商品</p>
                <a href="../views/list.html">去商品页逛逛</a>
            </div>

            <div class="loading-shop w" >
                <div class="item shop-cart-tit clearfix">
                    <span class="cart-tit active">全部商品&nbsp;<span class="num">{{cartList.length}}</span></span>
                </div>
                <div class="item shop-msg-tit clearfix">
                    <div class="msg-tit msg-tit1">商品信息</div>
                    <div class="msg-tit msg-tit2"></div>
                    <div class="msg-tit msg-tit3">单价</div>
                    <div class="msg-tit msg-tit4">数量</div>
                    <div class="msg-tit msg-tit5">小计</div>
                    <div class="msg-tit msg-tit6">操作</div>
                </div>
                <div class="shop-msg-item clearfix" v-for="(item, index) in cartList">
                    <div class="shop-msg shop-msg1 msg-tit1">
                        <input type="checkbox" class="samll" @click="checkClick($event, index)" v-model="checkedArr[index]">
                        <img :src="cartList[index].img">
                    </div>
                    <div class="shop-msg shop-msg2 msg-tit2">
                        <span><a href="../views/detail.html">{{cartList[index].name}}</a></span>
                    </div>
                    <div class="shop-msg shop-msg3 msg-tit3">
                        <span class="spa1">¥{{cartList[index].price}}</span>
                    </div>
                    <div class="shop-msg shop-msg4 msg-tit4">
                        <div class="input-number-box clearfix">
                            <div class="num-btn del-btn fl" @click="sub(index)">
                                <span>-</span>
                            </div>
                            <input class="num-input fl" type="text" max="5" v-model:value="cartList[index].num" >
                            <div class="num-btn add-btn fl" @click="sup(index)">
                                <span>+</span>
                            </div>
                        </div>
                        <div class="purchase-limit">仅限购5件</div>
                    </div>
                    <div class="shop-msg shop-msg5 msg-tit5">
                        <span>¥{{cartList[index].price * cartList[index].num}}</span>
                    </div>
                    <div class="shop-msg shop-msg6 msg-tit6">
                        <a @click="del(index)">删除商品</a>
                        <!-- <a>修改商品</a> -->
                    </div>
                </div>
            </div>
            <div class="shop-total-wrap pos-f">
                <div class="shop-total w clearfix">
                    <div class="total-left fl">
                        <input type="checkbox" class="check-all" v-model:checked="checkedArrBtn" @click="checkAll($event)">
                        <span>全选</span>
                    </div>
                    <div class="total-right fr">
                        合计&nbsp;&nbsp;<span class="sym">¥</span><span class="pri">{{totalPrice}}</span>
                        <a href="javascript:void(0);" class="settlement">去结算<span class="num"></span></a>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
</body>
</html>